package com.zeei.bfs.vo;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.zeei.common.vo.PageParamVO;

/**
 * 类描述：查询部门的参数VO
 *
 * @author zws
 * @version 1.0
 * @date 2016年7月7日
 *
 */
public class QueryDeptParamVO extends PageParamVO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** 搜索部门名称 */
	private String searchDeptName;

	private Integer searchCompanyId;

	public String getSearchDeptName() {
		return searchDeptName;
	}

	public void setSearchDeptName(String searchDeptName) {
		this.searchDeptName = searchDeptName;
	}

	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map convertConditionMap() {
		Map condition = new HashMap();
		condition.put("searchDeptName", searchDeptName);
		condition.put("searchCompanyId", searchCompanyId);
		condition.put("page", this.getPage());
		condition.put("rows", this.getRows());
		return condition;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	public Integer getSearchCompanyId() {
		return searchCompanyId;
	}

	public void setSearchCompanyId(Integer searchCompanyId) {
		this.searchCompanyId = searchCompanyId;
	}

}
